<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户登录页面</title>
</head>
<body>
<h1>用户登录页</h1>
<form method="post" action="/userlogin/">
    {% csrf_token %}
    <input type="text" name="username" placeholder="用户名">
    <input type="password" name="password" placeholder="密码">
    <input type="submit" value="提交">
    <!--登录失败时显示-->
    <span style="color: #d43f3a">{{ error_msg }}</span>
</form>
</body>
</html>